all: personal-emoji.dict personal-phrases.dict

personal-emoji.dict: personal-emoji.txt
	libime_pinyindict personal-emoji.txt personal-emoji.dict

personal-emoji.txt: personal-emoji.text
	python make_dict_file.py personal-emoji.text > personal-emoji.txt

personal-phrases.dict: personal-phrases.txt
	libime_pinyindict personal-phrases.txt personal-phrases.dict

personal-phrases.txt: personal-phrases.text
	python make_dict_file.py personal-phrases.text > personal-phrases.txt

install: personal-emoji.dict personal-phrases.dict
	mkdir -p ~/.local/share/fcitx5/pinyin/dictionaries/
	cp -f ./*.dict ~/.local/share/fcitx5/pinyin/dictionaries/

clean:
	$(RM) ./*.dict ./*.txt
